{include file='../../../PublicView/include.html'}
<script src="/assets/shopadmin/gift_index.js"></script>
<div class="taeapp admin-table" cellpadding="0" cellspacing="0" border="0">
        <div class="taeapp admin-table-side  tips tips-small tips-notice tips-no-icon">
            <!--菜单部分-->
            <div class="taeapp admin-nav">
			{include file='../../../PublicView/shopleft.html'}
			</div>
            <!--菜单部分-->
        </div>
        <div class="taeapp admin-table-main">
            <!--内容部分-->
				<ul class="breadcrumb">
					<li><a href="/">互动到店</a> <span class="divider">/</span></li>
					<li>活动管理 <span class="divider">/</span></li>
					<li class="active">{$title}</li>
				</ul>
		
			<!--内容部分-->
			{include file='../../../PublicView/showmessage.html'}
			<div class="row">
			  <div id="tab">
					 <ul class="bui-tab nav-tabs"> 
					 <form class="pull-right" method="post" action="/?a=users&c=wins&m=shopadmin">
						<input type="text" name="usernick"  value="{$search|default:""}" class="control-text search-query">
						<button type="submit" class="button-small">搜索</button>
					 </form>
					 <li class="bui-tab-item {if $ctp==$key} bui-tab-item-selected{/if}" data-admin="{$admin}" data-tp="{$key}"><span class="bui-tab-item-text">全部用户</span></li>
					
					 <li><button class="button button-small button-success js-reset">清空所有抽奖用户</button></li>
					<!--  {if $type==9}
					 <li class="pull-right"><button class="button button-small button-success list" data-ctp="{$ctp}"><i class="icon icon-white icon-list"></i>列表</button></li>
					 {else}
					 <li class="pull-right"><button class="button button-small button-warning trash" data-ctp="{$ctp}"><i class="icon icon-white icon-trash"></i>回收站</button></li>
					 {/if} -->
					 <!-- <li><button class="button button-small button-danger"><i class="icon-white icon-trash"></i>删除内容</button></li>
					 <li><button class="button button-small button-inverse">修改内容</button></li> -->
					 </ul>
			  </div>
			  <div class="form-horizontal">
			  <table cellspacing="0" class="table table-bordered" style="border-top:none">
          <tbody>
		  
            <tr>
              <th width="15"></th>
              <th>昵称</th>
              <th>剩余抽奖次数</th>
              <th>总抽奖次数</th>
			  <th>中奖次数</th>
            </tr>
		  {foreach key=key item=item from=$data}
            <tr class="re{$ctp}{$item.id}">
              <td><!-- <input type="checkbox"> --></td>
              <td>{$item.usernick|default:"未知"}</td>
              <td><span class="tms{$key}">{$item.score}</span>次<button class="button button-mini pull-right js-addtms" data-uid="{$key}">增加次数</button><button class="button button-mini button-danger pull-right js-deltms" data-uid="{$key}">清空</button></td>
              <td>{$item.lotts}次</td>
              <td>{$item.wins}次</td>
            </tr>
		{/foreach}
          </tbody>
        </table>
		<div>
          <!-- <ul class="toolbar pull-left">
            <li><label class="checkbox"><input type="checkbox"><a href="#">全选</a></label></li>
            <li><button class="button button-danger"><i class="icon-white icon-trash"></i>批量删除</button></li>
            <li><button class="button button-success">审核通过</button></li>
            <li><button class="button button-inverse">审核不通过</button></li>
          </ul> -->
		  <div class="pagination pull-right" data-totalpg="{$totalpg}" data-curpg="{$curpg}" data-action="{$current}">
			{$page}
          </div>
        </div>
			  </div>
			</div>			
			<input type="hidden" class="type" value="{$type|default:0}" />
        <!--内容部分-->
        </div>
</div>